boolean connectivity = false;

int tempCon = 0;

void setup() {
  Serial.begin(115200); 
}

void loop(){
  if (Serial.available() > 1) {// Needs a '6' to be received and must be the first digit out of the two digits received 
      tempCon = (int) Serial.read();
    if(tempCon == 54){//Ascii representation comparison
      Serial.print("Connection Successful\n");
      connectivity = true;
    }
  }
  if(connectivity == true){
  }
}
